package com.bupt.liutong.admin.bbs.form;

import java.util.Date;
import com.bupt.liutong.util.DateUtils;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

import com.bupt.liutong.admin.core.base.BaseForm;

public class PostForm extends BaseForm {

	private Long id;
	private Long parentId;
	private Integer boardId;
	private String title;
	private Integer replyNum;
	private Integer clickNum;
	private String userName;
	private String nickName;
	private String content;
	private String ip;
	private String lastUserName;
	private String lastNickName;

	private Date lastReplyTime;
	private String lastReplyTimeStr;
	private Date createTime;
	private String createTimeStr;
	private Integer elite;
	private String eliteStr;
	private Integer top;
	private String topStr;
	private Integer canReply;
	private Integer enabled;
	private String canReplyStr;
	private String enabledStr;
	
	private Integer boardParentId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getBoardId() {
		return boardId;
	}

	public void setBoardId(Integer boardId) {
		this.boardId = boardId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getReplyNum() {
		return replyNum;
	}

	public void setReplyNum(Integer replyNum) {
		this.replyNum = replyNum;
	}

	public Integer getClickNum() {
		return clickNum;
	}

	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
		if (createTime != null)
			createTimeStr = DateUtils.getTimeStr(createTime);
	}

	public String getCreateTimeStr() {
		return createTimeStr;
	}

	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
		if (createTimeStr != null)
			createTime = DateUtils.getTime(createTimeStr);
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getLastReplyTime() {
		return lastReplyTime;
	}

	public void setLastReplyTime(Date lastReplyTime) {
		this.lastReplyTime = lastReplyTime;
		if (lastReplyTime != null)
			lastReplyTimeStr = DateUtils.getTimeStr(lastReplyTime);
	}

	public String getLastReplyTimeStr() {
		return lastReplyTimeStr;
	}

	public void setLastReplyTimeStr(String lastReplyTimeStr) {
		this.lastReplyTimeStr = lastReplyTimeStr;
		if (lastReplyTimeStr != null)
			lastReplyTime = DateUtils.getTime(lastReplyTimeStr);
	}

	public String getLastUserName() {
		return lastUserName;
	}

	public void setLastUserName(String lastUserName) {
		this.lastUserName = lastUserName;
	}

	public String getLastNickName() {
		return lastNickName;
	}

	public void setLastNickName(String lastNickName) {
		this.lastNickName = lastNickName;
	}

	public Integer getElite() {
		return elite;
	}

	public void setElite(Integer elite) {
		this.elite = elite;
		if (elite != null) {
			eliteStr = ctm.get("yesOrNo").get(elite.toString());
		}
	}

	public String getEliteStr() {
		return eliteStr;
	}

	public void setEliteStr(String eliteStr) {
		this.eliteStr = eliteStr;
	}

	public Integer getTop() {
		return top;
	}

	public void setTop(Integer top) {
		this.top = top;
		if (top != null) {
			topStr = ctm.get("yesOrNo").get(top.toString());
		}
	}

	public String getTopStr() {
		return topStr;
	}

	public void setTopStr(String topStr) {
		this.topStr = topStr;
	}

	public Integer getCanReply() {
		return canReply;
	}

	public void setCanReply(Integer canReply) {
		this.canReply = canReply;
		if(canReply != null)
			canReplyStr = ctm.get("yesOrNo").get(canReply.toString());
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
		if(enabled != null)
			enabledStr = ctm.get("yesOrNo").get(enabled.toString());
	}

	public String getCanReplyStr() {
		return canReplyStr;
	}

	public void setCanReplyStr(String canReplyStr) {
		this.canReplyStr = canReplyStr;
	}

	public String getEnabledStr() {
		return enabledStr;
	}

	public void setEnabledStr(String enabledStr) {
		this.enabledStr = enabledStr;
	}

	public Integer getBoardParentId() {
		return boardParentId;
	}

	public void setBoardParentId(Integer boardParentId) {
		this.boardParentId = boardParentId;
	}

}
